using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools._Administration
{
    /// <summary>
    /// <para>Set Terminal Configuration</para>
    /// <para>Assigns a  terminal configuration to an asset type in a utility network.</para>
    /// <para>将终端配置分配给公共设施网络中的资产类型。</para>
    /// </summary>    
    [DisplayName("Set Terminal Configuration")]
    public class SetTerminalConfiguration : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SetTerminalConfiguration()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Utility Network</para>
        /// <para>The utility network containing the terminal configuration that will be set on a specific asset type.</para>
        /// <para>包含将在特定资产类型上设置的终端配置的公共设施网络。</para>
        /// </param>
        /// <param name="_domain_network">
        /// <para>Domain Network</para>
        /// <para>The domain network to which the asset type belongs.</para>
        /// <para>资产类型所属的域网络。</para>
        /// </param>
        /// <param name="_device_featureclass">
        /// <para>Input Table</para>
        /// <para>The utility network feature class or table to which the asset type belongs.</para>
        /// <para>资产类型所属的公共设施网络要素类或表。</para>
        /// </param>
        /// <param name="_assetgroup">
        /// <para>Asset Group</para>
        /// <para>The asset group to which the asset type belongs.</para>
        /// <para>资产类型所属的资产组。</para>
        /// </param>
        /// <param name="_assettype">
        /// <para>Asset Type</para>
        /// <para>The asset type that will receive the terminal configuration.</para>
        /// <para>将接收终端配置的资产类型。</para>
        /// </param>
        /// <param name="_terminal_configuration">
        /// <para>Terminal Configuration</para>
        /// <para>The terminal configuration to be assigned to the asset type.</para>
        /// <para>要分配给资产类型的终端配置。</para>
        /// </param>
        public SetTerminalConfiguration(object _in_utility_network, object _domain_network, object _device_featureclass, object _assetgroup, object _assettype, object _terminal_configuration)
        {
            this._in_utility_network = _in_utility_network;
            this._domain_network = _domain_network;
            this._device_featureclass = _device_featureclass;
            this._assetgroup = _assetgroup;
            this._assettype = _assettype;
            this._terminal_configuration = _terminal_configuration;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Set Terminal Configuration";

        public override string CallName => "un.SetTerminalConfiguration";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_utility_network, _domain_network, _device_featureclass, _assetgroup, _assettype, _terminal_configuration, _out_utility_network];

        /// <summary>
        /// <para>Input Utility Network</para>
        /// <para>The utility network containing the terminal configuration that will be set on a specific asset type.</para>
        /// <para>包含将在特定资产类型上设置的终端配置的公共设施网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Domain Network</para>
        /// <para>The domain network to which the asset type belongs.</para>
        /// <para>资产类型所属的域网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Domain Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _domain_network { get; set; }


        /// <summary>
        /// <para>Input Table</para>
        /// <para>The utility network feature class or table to which the asset type belongs.</para>
        /// <para>资产类型所属的公共设施网络要素类或表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _device_featureclass { get; set; }


        /// <summary>
        /// <para>Asset Group</para>
        /// <para>The asset group to which the asset type belongs.</para>
        /// <para>资产类型所属的资产组。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Asset Group")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _assetgroup { get; set; }


        /// <summary>
        /// <para>Asset Type</para>
        /// <para>The asset type that will receive the terminal configuration.</para>
        /// <para>将接收终端配置的资产类型。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Asset Type")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _assettype { get; set; }


        /// <summary>
        /// <para>Terminal Configuration</para>
        /// <para>The terminal configuration to be assigned to the asset type.</para>
        /// <para>要分配给资产类型的终端配置。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Terminal Configuration")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _terminal_configuration { get; set; }


        /// <summary>
        /// <para>Updated Utility Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Utility Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        public SetTerminalConfiguration SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}